<template>
  <div class="work-card">
    <div class="work-card__content">
      <span class="text-topic">{{ topic }}</span>
      <span class="text-normal">{{ data.comment }}</span>
    </div>
    <div class="text-time">{{ data.createTime }}</div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      required: true
    }
  },
  computed: {
    topic() {
      return '#' + this.data.topic + '#'
    }
  }
}
</script>

<style lang="less">
.work-card {
  background-color: #ffffff;
  padding: 20px 40px;
  box-shadow: inset 0 -2px 0 0 #f5f5f5;

  &__content {
    font-size: 32px;
    color: #333333;
  }

  .text-time {
    font-size: 24px;
    color: #999999;
    margin-top: 8px;
  }

  .text-topic {
    color: @primary;
    font-family: @font-medium;
    font-weight: bold;
    margin-right: 8px;
  }
}
</style>
